package com.spa.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spa.infrastructure.annotation.UrlParse;
import lombok.Data;

import java.util.Date;

/**
 * 技师表
 *
 * @author: lig
 * @date: 2023/12/6
 */
@Data
@TableName("s_massagist")
public class MassagistPO extends GenericPO {

    /** 用户ID */
    @TableField(value = "user_id")
    private Long userId;

    /** 最早可约时间 */
    @TableField(value = "appointment_time")
    private Date appointmentTime;

    /** 技师状态：10 休息中 20 可预约 30 服务中 */
    @TableField(value = "status")
    private Integer status;

    /** 经度 */
    @TableField(value = "lon")
    private String lon;

    /** 纬度 */
    @TableField(value = "lat")
    private String lat;

    /** 介绍 */
    @TableField(value = "introduce")
    private String introduce;

    /** 从业资格证 */
    @TableField(value = "qualification_certificate")
    @UrlParse(hasStyle = true)
    private String qualificationCertificate;

    /** 健康证 */
    @TableField(value = "health_certificate")
    @UrlParse(hasStyle = true)
    private String healthCertificate;

    /**
     * 技师名称
     */
    @TableField(value = "name")
    private String name;

    @TableField(value = "length_of_employment")
    private String lengthOfEmployment;

    @TableField(value = "idcard_tails")
    @UrlParse(hasStyle = true)
    private String idCardTails;

    @TableField(value = "idcard_front")
    @UrlParse(hasStyle = true)
    private String idCardFront;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "is_del")
    private Integer isDel;

    @TableField(exist = false)
    private String shopName;

    @TableField(exist = false)
    private String cityName;

    @TableField(value = "type")
    private Integer type;

    @TableField(value = "score")
    private String score;

    @TableField(value = "shop_id")
    private Long shopId;

    @TableField(value = "tag")
    private Integer tag;

    @TableField(value = "work_photo")
    @UrlParse(hasStyle = true)
    private String workPhoto;

    @TableField(value = "life_photo")
    @UrlParse(hasMore = true,hasStyle = true)
    private String lifePhoto;

    @TableField(value = "select_count")
    private Integer selectCount;

    @TableField(value = "follow_count")
    private Integer followCount;

}
